//
//  UIColor+LW.h
//  AiDream
//
//  Created by  on 2023/2/14.
//  Copyright © 2023 lishen. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIColor (LW)

/**
 * RGB字符串转化值
 */
+ (UIColor *)colorWithRgbColor:(NSString *)color;

/**
 * 如果hexString是8位则参数alpha失效
 * @param hexString 16进制颜色字符串
 */
+ (UIColor *)colorWithHexString:(NSString *)hexString;

/**
 * 如果hexString是8位则参数alpha失效,使用hexString包含的alpha
 * @param hexString 16进制颜色字符串
 * @param alpha 颜色透明度
 */
+ (UIColor *)colorWithHexString:(NSString *)hexString alpha:(CGFloat)alpha;

@end

NS_ASSUME_NONNULL_END
